<template>
  <div class="success">
    <img class="success-icon" src="@/assets/logo-success.png" />
    <div class="success-title">注册成功</div>
    <div class="desc">将自动跳转到登录页面…</div>
    <div class="back">
      <router-link to="/login" :replace="true">
        <svg-icon style="color: #1890FF" name="arrow1" />
        返回登录
      </router-link>
    </div>
  </div>
</template>
<script lang="ts">
/**
 * generate by vscode
 */
import { Component, Vue, Prop } from 'vue-property-decorator'
@Component({
  name: 'success'
})
export default class success extends Vue {
  mounted() {
    setTimeout(() => {
      this.$router.replace('/login')
    }, 1500)
  }
}
</script>
<style lang="scss" scoped>
.success {
  text-align: center;
  .desc {
    color: #1890ff;
    font-size: 20px;
    margin-bottom: 82px;
  }
  .back {
    color: #1890ff;
  }
}
.success-icon {
  width: 84px;
  height: 72px;
}
.success-title {
  margin: 24px 0 54px 0;
  color: #444;
  font-size: 30px;
}
</style>
